package so.sao.code.service.infrastructure;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;
import so.sao.code.service.infrastructure.annotation.OperationLog;
import so.sao.sso.feign.dto.UserDTO;

/**
 * Created by Administrator on 2017/9/15.
 */
@Component
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, value = WebApplicationContext.SCOPE_REQUEST)
public class SessionContext {

    public UserDTO CURRECT_USER = new UserDTO();

    public String ip = "";

	public SessionContext() {
		this.CURRECT_USER.setId(-1L);
		this.ip = "127.0.0.1";
		System.out.println("new instance");
	}

}
